import request from '@/utils/request'

// 查询业务员佣金记录列表
export function listSalesmanConsumeDetail(query) {
  return request({
    url: '/salesmanConsumeDetail/salesmanConsumeDetail/list',
    method: 'get',
    params: query
  })
}

// 查询业务员佣金记录详细
export function getSalesmanConsumeDetail(id) {
  return request({
    url: '/salesmanConsumeDetail/salesmanConsumeDetail/' + id,
    method: 'get'
  })
}

// 新增业务员佣金记录
export function addSalesmanConsumeDetail(data) {
  return request({
    url: '/salesmanConsumeDetail/salesmanConsumeDetail',
    method: 'post',
    data: data
  })
}

// 修改业务员佣金记录
export function updateSalesmanConsumeDetail(data) {
  return request({
    url: '/salesmanConsumeDetail/salesmanConsumeDetail',
    method: 'put',
    data: data
  })
}

// 删除业务员佣金记录
export function delSalesmanConsumeDetail(id) {
  return request({
    url: '/salesmanConsumeDetail/salesmanConsumeDetail/' + id,
    method: 'delete'
  })
}
